package com.telit.firecommand.constant;

/**
 * @Auther amy
 * @Describe 关于redis的相关key
 */
public class RedisKeyConstant {

    /** 系统配置项redis前缀 **/
    public static final String REDIS_SYS_CONFIG_KEY_PREFIX = "FIRE:YICHANG:";

    /** 护林员表头-行政区划下人员数量 **/
    public static final String REDIS_SYS_DISTRICT_FOREST_COUNT_KEY_PREFIX = "SYS_DISTRICT:FOREST_COUNT";

    /** 行政区划下拉选择框 **/
    public static final String REDIS_SYS_DISTRICT_SELECT_TREE_KEY = "SYS_DISTRICT:TREE_SELECT";

    /** 天气缓存 **/
    public static final String ONE_DAY_WEATHER = "FIRE:YICHANG:FIRECOMMAND:ONE_DAY_WEATHER:";

    /**
     * 天气缓存：实时
     */
    public static final String NOW_WEATHER = "FIRE:YICHANG:FIRECOMMAND:NOW_WEATHER:";

    /**
     * 天气缓存：24小时
     */
    public static final String HOURLY_WEATHER = "FIRE:YICHANG:FIRECOMMAND:HOURLY_WEATHER:";

    public static final String DAY_WEATHER = "FIRE:YICHANG:FIRECOMMAND:DAY_WEATHER:";

    /** 监控轮询时间 **/
    public static final String ROUND_ROBIN_SPEED = "FIRE:YICHANG:FIRECOMMAND:ROUND_ROBIN_SPEED";

    /** 监控轮询时间 **/
    public static final String CAMERA_POSITION = "FIRE:YICHANG:FIRECOMMAND:CAMERA_POSITION:";

    /** 监控设备 **/
    public static final String CAMERA_DEVICE = "FIRE:YICHANG:FIRECOMMAND:CAMERA_DEVICE";

    /** 监控预览Url **/
    public static final String CAMERA_PREVIEW_URL = "FIRE:YICHANG:FIRECOMMAND:CAMERA_PREVIEW_URL:";

    /** 监控预览URL失效时间 **/
    public static final Long CAMERA_PREVIEW_URL_EXPIRE_TIME = 260L;

    /** 火场态势首页实时视频 **/
    public static final String RTV = "FIRE:YICHANG:FIRECOMMAND:RTV:";

    /**
     * 防火物资储备token
     */
    public static final String MATERIAL_ACCESS_TOKEN = "FIRE:YICHANG:FIRECOMMAND:MATERIAL_ACCESS_TOKEN";

    /**
     * 防火物资储备token过期时间 23小时
     */
    public static final Long MATERIAL_ACCESS_TOKEN_EXPIRE_TIME = Long.parseLong(String.valueOf(23 * 60 * 60));

    /**
     * 物联网设备token
     */
    public static final String EQUIP_STATION_ACCESS_TOKEN = "FIRE:YICHANG:FIRECOMMAND:EQUIP_STATION_ACCESS_TOKEN";

    /**
     * 升哲IOT token
     */
    public static final String IOT_ACCESS_TOKEN = "FIRE:YICHANG:FIRECOMMAND:IOT_ACCESS_TOKEN";

    /**
     * 物联网设备token过期时间 23小时
     */
    public static final Long EQUIP_STATION_ACCESS_TOKEN_EXPIRE_TIME = Long.parseLong(String.valueOf(23 * 60 * 60));

    /**
     * 物联网设备token过期时间 6 天
     */
    public static final Long IOT_ACCESS_TOKEN_EXPIRE_TIME = Long.parseLong(String.valueOf(6 * 24 * 60 * 60));

    /**
     * 获取历史视频回放时间
     */
    public static final String CAMERA_PLAYBACK_URL = "FIRE:YICHANG:FIRECOMMAND:CAMERA_PLAYBACK_URL:";

    /**
     * 获取历史视频回放过期时间：10秒
     */
    public static final Long CAMERA_PLAYBACK_URL_EXPIRE_TIME = Long.parseLong(String.valueOf(10));

    /**
     * 火情过滤开关
     */
    public static final String FILTER_SWITCH = "FIRE:YICHANG:FIRECOMMAND:FILTERSWITCH";

}
